package com.spring.soundsystem.config;

import com.spring.soundsystem.SpringAOP.UserService;
import com.spring.soundsystem.SpringAOP.UserServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@ComponentScan(basePackages = "com.spring.soundsystem.aop" )
@EnableAspectJAutoProxy
public class AppConfig {
    @Bean
    public UserService userService(){
        return new UserServiceImpl();
    }


}
